[ Mega Script Archive ] [ Frequently Asked Questions ] [ Simple Search ]

How can I search recursively down directories?

This version of the Simple Search Script does not allow you to search recursively down directories, although I am planning it in the next release. You can however, make a crude hack, by simply using the following solution. Say you want to search all html file 3 directories deep. All you would have to put in your @files array is:

      @files = ('*.html/','*/*.html','*/*/*.html','*/*/*/*.html');

This idea provided by Robert A. Kim.


[ Mega Script Archive ]